<?php
$noSeasonChange = true;
$showStats = true;
include_once ("includes/header.php");

$sort = getParam("sort");
if (!isset ($sort)) {
    $sort = 1;
}
$direction = getParam("dir");

$deads = loadPlayerDeads($sort, $direction);

echo<<< EOQ
            <caption><h1>Dead and Retired Players <img src="images/skull-and-crossbones.png" /></h1></caption>
EOQ;
// Touchdownss
echoPlayerDeadsHeader($sort, $id);

for ($i = 0; $i < sizeof($deads); $i++) {
    $team = $teams->getTeam($deads[$i]->teamId);
    echoPlayerdeadsRow($team, $deads[$i], $i);
}
include ("includes/footer.php");
?>
